﻿namespace Digitalmes.Application.Common.BusinessPolicies;

/// <summary>
/// 表示业务策略接口。
/// </summary>
public interface IBusinessPolicy
{
    /// <summary>
    /// 执行策略。
    /// </summary>
    /// <param name="data">数据</param>
    /// <param name="cancellationToken"></param>
    /// <returns></returns>
    Task<PolicyResult> HandleAsync(object? data, CancellationToken cancellationToken);
}
